import request from '@/utils/aliyunRequest';

const answerApi = {};

answerApi.getBySampleId = (sampleId) => {
	return request({
		url: '/aliyun-api/answer/sample/' + sampleId,
		method: 'get',
	})
}
answerApi.page = (params) => {
	return request({
		url: '/aliyun-api/answer/page',
		method: 'get',
		params: params,
	})
}
answerApi.add = (params) => {
	return request({
		url: '/aliyun-api/answer',
		method: 'post',
		data: params,
	})
}
answerApi.delete = (id) => {
	return request({
		url: '/aliyun-api/answer/' + id,
		method: 'delete',
	})
}

export default answerApi